package com.suixinsanren.design.proxy.study.gumball;

public class GumballMonitor {

    private GumballMachine gumballMachine;

    public GumballMonitor(GumballMachine gumballMachine) {
        this.gumballMachine = gumballMachine;
    }

    public void report() {
        System.out.println("Gumball Machine:" + gumballMachine.getLocation());
        System.out.println("Current inventory:" + gumballMachine.getCount() + "个硬币");
        System.out.println("Current state:" + gumballMachine.getState());
    }
}
